package com.hnnou.freshmenappserver.bean.vo;

import lombok.Data;

@Data
public class MessagePageVo {
    private Integer pageIndex;
    private Integer pageSize;
    public Integer getOffset(){
        return this.pageIndex* pageSize;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
